<template>
  <div v-if="isShow" id="workflowFormApprovalActionDiv" class="wf-box" style="margin-top: 5px;">
    <div class="wf-pop-tit" style="height: 30px;">
      <span><em>*</em>审核菜单：</span>
    </div>
    <div class="wf-pop-in p10">
      <el-radio-group    @change="radioClick" v-model="value"  >
        <el-radio  v-for="(item,  index) in approData" :label="item.approName" :key="item.approAction">{{item.approName}}</el-radio>
      </el-radio-group>
    </div>
  </div>
</template>
<script>
  export default {
    name: "f2bpm-approval-action",
    props: {
      //[{approAction:"同意",approName:"同意",orderNo:100 },{ approAction:"反对",   approName: "反对",orderNo:101 }]
      approData: {
        required: true
      }
    }
    , created: function () {
      var that = this;
      if(that.approData&&that.approData.length>0){
        that.isShow=true;
      }else{
        that.isShow=false;
      }
    },
    mounted() {
      var that = this;
    },
    computed: {

    },
    data() {
      return {
        isShow:true,
        value:"",
        formAction: null
      }
    },
    methods: {
      radioClick(value) {
            var that = this;
            this.$emit('updateapproalaction',   value)
        }
    }
  }
</script>